package com.by.goods.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
<<<<<<< HEAD
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.by.api.dto.CarDto;
=======
import com.by.api.dto.CarDto;
import com.by.goods.entity.dto.SpuDto;
>>>>>>> csy
import com.by.goods.entity.Spu;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface SpuMapper extends BaseMapper<Spu> {
    /**
     * 查询商品列表(自己写的)
     * @param
     * @return
     */
<<<<<<< HEAD
    IPage<Spu> queryList(Page<Spu> page);

=======
    List<SpuDto> selectSpuList();
>>>>>>> csy
    /**
     * 锁定spu库存
     * @param carDto
     * @return
     */
    int lockSpuStock(CarDto carDto);
<<<<<<< HEAD


=======
>>>>>>> csy

}
